import request from '@/utils/request'

const api = {
    path: '/attachment/api/upload'
}

export function uploadImage(fileObj) {
    return request({
        url: api.path,
        method: 'post',
        data: fileObj,
        headers:{
            'Content-Type':'multipart/form-data'
        },
        timeout: 1000000
    })
}

export function commonUploadFile(fileObj) {
    return request({
        url: api.path,
        method: 'post',
        data: fileObj,
        headers:{
            'Content-Type':'multipart/form-data'
        },
        timeout: 1000000
    })
}